AutoFormBase<Model>
Assembly: ServiceStack.Blazor.dll
View Source
Declaration
public abstract class AutoFormBase<Model> : BlazorComponentBase, IHasJsonApiClient
Properties
ApiType
View Source
Declaration
public Type ApiType { get; set; }
Heading
View Source
Declaration
public string Heading { get; set; }
SubHeading
View Source
Declaration
public string SubHeading { get; set; }
FormStyle
View Source
Declaration
public FormStyle FormStyle { get; set; }
PanelClass
View Source
Declaration
public string PanelClass { get; set; }
FormClass
View Source
Declaration
public string FormClass { get; set; }
HeadingClass
View Source
Declaration
public string HeadingClass { get; set; }
SubHeadingClass
View Source
Declaration
public string SubHeadingClass { get; set; }
TitlebarClass
View Source
Declaration
public string TitlebarClass { get; set; }
ButtonsClass
View Source
Declaration
public string ButtonsClass { get; set; }
AutoSave
View Source
Declaration
public bool AutoSave { get; set; }
Done
View Source
Declaration
public EventCallback Done { get; set; }
Save
View Source
Declaration
public EventCallback<Model> Save { get; set; }
Delete
View Source
Declaration
public EventCallback<Model> Delete { get; set; }
Error
View Source
Declaration
public EventCallback<ResponseStatus> Error { get; set; }
FormLayout
View Source
Declaration
public List<InputInfo>? FormLayout { get; set; }
AppMetadata
View Source
Declaration
public AppMetadata AppMetadata { get; set; }
MetadataType
View Source
Declaration
public MetadataType MetadataType { get; }
ModelDictionary
View Source
Declaration
protected Dictionary<string, object> ModelDictionary { get; set; }
OriginalModelDictionary
View Source
Declaration
protected Dictionary<string, object> OriginalModelDictionary { get; set; }
Title
View Source
Declaration
protected abstract string Title { get; }
Notes
View Source
Declaration
protected virtual string Notes { get; }
Inherited Properties
Client
View Source
Declaration
public JsonApiClient Client { get; }
ClientFactory
View Source
Declaration
public IClientFactory ClientFactory { get; set; }
EnableLogging
View Source
Declaration
protected virtual bool EnableLogging { get; }
Gateway
View Source
Declaration
public IServiceGateway Gateway { get; }
UseGateway
View Source
Declaration
public bool UseGateway { get; set; }
Fields
metadataType
View Source
Declaration
protected MetadataType metadataType
SlideOverTransition
View Source
Declaration
protected DataTransition SlideOverTransition
api
View Source
Declaration
protected IHasErrorStatus? api
Methods
OnDone()
View Source
Declaration
protected async Task OnDone()
Returns
Task
CloseAsync()
View Source
Declaration
public async Task CloseAsync()
Returns
Task
CreateRequest(Type)
View Source
Declaration
public object CreateRequest(Type type)
Returns
System.Object
Parameters
Type | Name |
---|---|
Type | type |
OnSave()
View Source
Declaration
protected virtual async Task OnSave()
Returns
Task
TransitionAsync(Boolean)
View Source
Declaration
protected async Task TransitionAsync(bool show)
Returns
Task
Parameters
Type | Name |
---|---|
System.Boolean | show |
Inherited Methods
ApiAppMetadataAsync()
View Source
Declaration
public virtual Task<ApiResult<AppMetadata>> ApiAppMetadataAsync()
Returns
Task<ServiceStack.ApiResult<ServiceStack.AppMetadata>>
ApiAsync(IReturnVoid)
View Source
Declaration
public virtual Task<ApiResult<EmptyResponse>> ApiAsync(IReturnVoid request)
Returns
Task<ServiceStack.ApiResult<EmptyResponse>>
Parameters
Type | Name |
---|---|
IReturnVoid | request |
ApiAsync<TResponse>(IReturn<TResponse>)
View Source
Declaration
public virtual Task<ApiResult<TResponse>> ApiAsync<TResponse>(IReturn<TResponse> request)
Returns
Task<ServiceStack.ApiResult<<TResponse>>>
Parameters
Type | Name |
---|---|
IReturn<<TResponse>> | request |
Type Parameters
TResponse
ApiAsync<Model>(Object)
View Source
Declaration
public virtual Task<IHasErrorStatus> ApiAsync<Model>(object request)
Returns
Task<IHasErrorStatus>
Parameters
Type | Name |
---|---|
System.Object | request |
Type Parameters
Model
ApiFormAsync<Model>(Object, MultipartFormDataContent)
View Source
Declaration
public virtual Task<ApiResult<Model>> ApiFormAsync<Model>(object requestDto, MultipartFormDataContent request)
Returns
Task<ServiceStack.ApiResult<<Model>>>
Parameters
Type | Name |
---|---|
System.Object | requestDto |
MultipartFormDataContent | request |
Type Parameters
Model
log(String, Object[])
View Source
Declaration
protected virtual void log(string message, params object[] args)
Parameters
Type | Name |
---|---|
System.String | message |
System.Object[] | args |
SendAsync<TResponse>(IReturn<TResponse>)
View Source
Declaration
public virtual Task<TResponse> SendAsync<TResponse>(IReturn<TResponse> request)
Returns
Task<<TResponse>>
Parameters
Type | Name |
---|---|
IReturn<<TResponse>> | request |
Type Parameters
TResponse
Implements
ServiceStack.IHasJsonApiClient